 {foreach name="all" item="all" key="k"}
 <div class="card user_order_card">
  <div class="card-header"><span>{$all['start_time']|date="Y-m-d",###} 至 {$all['end_time']|date="Y-m-d",###}</span>
  <a>{switch name="all['trial_status']"}
	    {case value="1"}待审核{/case}
	    {case value="2"}已通过{/case}
	    {default /}不通过
	 {/switch}</a>
  </div>
  <div class="card-content">
  <a {if condition="$all['trial_status'] neq 2"} 
  	 href="{:U('Users/editActivity',array('activity_id'=>$all['id']))}"
  	 {else/} 
  	 href="{:U('activityDetail/index',array('activity_id'=>$all['id']))}"
  	 {/if} >
    <div class="list-block media-list">
      <ul>
        <li class="item-content">
          <div class="item-media">
            <img src="{$all['activity_img']}" style="width:100px;" />
          </div>
          <div class="item-inner">
            <div class="item-title-row">
              <div class="item-title">{$all['activity_name']}</div>
            </div>
            <p style="font-size:12px;" class="color-gray">{$all['area']}&nbsp;&nbsp;&nbsp;{$all['signup_number']}人已报名</p>
          </div>
        </li>
      </ul>
    </div>
    </a>
  </div>
  <div class="card-footer"><span>￥<font>{$all['price']}</font></span><span>
  {if condition="$all['trial_status'] neq 2"} 
  <a style="display: inline-block;" href="{:U('editActivity',array('activity_id'=>$all['id']))}" class="button button-fill" >修改</a></span></div>
  {else/}
  <a style="display: inline-block;" href="{:U('Users/lookSignup',array('activity_id'=>$all['id']))}" class="button button-fill" >查看报名</a> 
  <a style="display: inline-block;" href="{:U('activityDetail/index',array('activity_id'=>$all['id']))}" class="button button-fill" >查看详情</a></span></div>
  {/if}
</div>
{/foreach}